
   <html>
   <head>
   <style type=text/css>
   body { font-size: 10pt; font-family: Arial; }
   table { width: 70%;font-size: 10pt; font-family: Arial; 
           overflow: auto; border-spacing:0;border-collapse:collapse}
   td { font-size: 10pt; font-family: Arial; border: solid 1px black;}
   td.t { font-size: 10pt; font-family: Arial; border: solid 1px black; 
          background: lightgrey; }
   A:link {text-decoration: none; color: darkblue}
   A:visited {text-decoration: none; color: darkblue}
   A:active {text-decoration: none; color: darkblue}
   A:hover {text-decoration: none; color: darkgray;}
   </style>
   </head>
   <body>
   
<h1>&lt;coelacanth/queue.h&gt;</h1>
Sample File: <a href='queue.c.html'>queue.c</a><br><br>
<table><tr><td class="t" colspan="2"><b> queue(varname, type)</b></td></tr>
<tr><td colspan="2"><i> Create a queue variable</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  type</td><td> type of hashtable elements</td></tr>
<tr><td><font color="#6d4d00">return</font></td><td> no <font color="#6d4d00">return</font> value</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_ptr(varname, type)</b></td></tr>
<tr><td colspan="2"><i> Create a queue pointer</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  type</td><td> type of hashtable elements</td></tr>
<tr><td><font color="#6d4d00">return</font></td><td> no <font color="#6d4d00">return</font> value</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_enqueue(varname, newvalue)</b></td></tr>
<tr><td colspan="2"><i> Adds value to end</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  newvalue</td><td> value to enqueue</td></tr>
<tr><td><font color="#6d4d00">return</font></td><td> no <font color="#6d4d00">return</font> value</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_dequeue(varname)</b></td></tr>
<tr><td colspan="2"><i> Remove first element</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td><font color="#6d4d00">return</font></td><td> no <font color="#6d4d00">return</font> value</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_size(varname)</b></td></tr>
<tr><td colspan="2"><i> Get the number of elements in queue</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td><font color="#6d4d00">return</font> size</td><td> queue size</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_get_head(varname)</b></td></tr>
<tr><td colspan="2"><i> Get first element</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td><font color="#6d4d00">return</font> value</td><td> first element</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_get_tail(varname)</b></td></tr>
<tr><td colspan="2"><i> Get last element</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td><font color="#6d4d00">return</font> value</td><td> last element</td></tr></table><br>
<table><tr><td class="t" colspan="2"><b> queue_free(varname)</b></td></tr>
<tr><td colspan="2"><i> free memory allocated by queue_*() functions</i></td></tr>
<tr><td width="30%"><font color="#27406d">param</font>  varname</td><td> variable name</td></tr>
<tr><td><font color="#6d4d00">return</font></td><td> no <font color="#6d4d00">return</font> value</td></tr></table><br>
</body></html>
